package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.PageParam;

import java.util.List;

public interface DishService {

    /*根据分类id来查询菜品表，查询这个分类在菜品表里面的总数*/
    int findCountByCategoryId(long categoryId);

    /**
     *wurenfeng
     */
    int add(DishDto dishDto);

    IPage findPage(PageParam pageParam);

    int update(DishDto dishDto);

    int delete(List<Long> ids);

    int updateStatus(List<Long> ids, Integer status);

    List<Dish> dishList(Long categoryId,Integer status);

    Long findCategoryId(Long id);
}
